#include <iostream>

using namespace std;

int main(void)
{
    // 1、整型
    int a = 0;
    cout << "请给整型变量a赋值：";
    cin >> a;
    cout << "整型变量a = " << a << endl;
    // 2、浮点型
    float f = 0;
    cout << "请给浮点型变量f赋值：";
    cin >> f;
    cout << "浮点型变量f = " << f << endl;
    // 3、字符型
    char ch = 0;
    cout << "请给字符型变量ch赋值：";
    cin >> ch;
    cout << "字符型变量ch = " << ch << endl;
    // 4、字符串型
    string str = "abc";
    cout << "请给字符串型变量str赋值：";
    cin >> str;
    cout << "字符串型变量str = " << str << endl;
    // 5、布尔型
    bool flag = true;
    cout << "请给布尔型变量flag赋值：";
    cin >> flag;
    cout << "布尔型变量flag = " << flag << endl;

    return 0;
}